package com.example.firstapp.service

import android.app.IntentService
import android.app.Service
import android.content.Intent
import android.os.IBinder

class MyIntentService: IntentService("MyIntentService") {

    override fun onHandleIntent(intent: Intent?) {
        println("Thread id is ${Thread.currentThread().name}")
    }

    override fun onDestroy() {
        super.onDestroy()
        println("线程销毁")
    }
}